home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HyperHackers.cpt / Hyper-Hackers Queue 1.0 / card_13762.txt < prev    next >
Text File  |  1989-02-26  |  804b  |  36 lines

  1. -- card: 13762 from stack: in.0
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3797
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10.  
  11. From: Chuq Von Rospach <chuq@sun.com>
  12.  
  13. Date: Fri,  8 Jan 88 9:00 PST
  14.  
  15. There is a message you can trap on called CloseField. during data entry,
  16. then, you can add a script to the field, card, or stack that does 
  17. something like:
  18.  
  19. on CloseField
  20.     if (field < 0 || field > 23) then
  21.         answer "field not within range" with "OK"
  22.         field = emtpy
  23.     endif
  24. end CloseField
  25.  
  26. This has a problem in that it doesn't force them to correct the answer,
  27. although you can then trap for empty fields on a closeCard and and force
  28. them to fix the card before allowing them to leave. 
  29.  
  30. chuq
  31.  
  32.  
  33.  
  34. -- part contents for background part 45
  35. ----- text -----
  36. Re: Input Validation